<template>
  <div class="search">
    <van-search
      v-model="value"
      shape="round"
      background="#4fc08d"
      placeholder="请输入搜索关键词"
      @search="getValue"
    />
  </div>
</template>

<script>
import { videolist } from "@/api/index";
export default {
  name: "searchVideo",
  data() {
    return {
      value: "",
    };
  },
  methods: {
    getValue(val) {
      videolist({ keywords: val }).then((res) => {
        this.$emit("search-value", res);
      });
    },
  },
};
</script>


<style scoped>
</style>
